package com.coolingme.general;

/**
 * 具体原型（Concrete Prototype）∶被拷贝的对象。
 *
 * @author wangyue
 * @date 2020/9/29 17:46
 */
public class ConcreteProtoType implements IProtoType {

    private String name;

    private Integer age;

    public ConcreteProtoType(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public ConcreteProtoType clone() {
        return new ConcreteProtoType(this.name, this.age);
    }
}
